﻿<%@ Page Language="C#"  Async="true" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="speech.WebForm1" %>

<%@ Register Assembly="Html5Asp" Namespace="Html5Asp" TagPrefix="html5" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Street Speak</title>
<link rel="shortcut icon" type="image/x-icon" href="CSS/favicon.ico">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
<link rel="stylesheet" href="CSS/Microphone.css"/>
<link rel="stylesheet" type="text/css" href="CSS/jquery.fancybox.css"  media="screen" />
<link rel="stylesheet" href="CSS/jquery.fancybox-buttons.css"/>

 <script type="text/javascript">

     function appends() {
         getTextBoxValue2 = document.getElementById("input").value.toLowerCase();
         if (getTextBoxValue2.indexOf("share") != -1) 
             {

                
                 //document.getElementById('<%=Btn_SendMail.ClientID%>').click();
             }
         }
     
 </script>
<style type="text/css">
.corners
{
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}

</style>

</head>


  <body id="mybody" onload="initialize(53.34876, -6.25972,20,10)">

    <div id="map_canvas" style="float:left;margin-left:75px;margin-right:20px;width:45%; height:500px;"></div>
    <div id="pano" style="width: 45%;height:500px"></div>
    <div id="container" style="text-align:center">
    <div id="dialog" title="Error Message"></div>

    <div id="title">
	<div id ="speechinput" >
	<input id="input" type="text"  speech="speech" x-webkit-speech="x-webkit-speech" onclick="clear();" onwebkitspeechchange="append();appends()"/>
    </div> <br />

    <div id ="shareMap" style="margin-left:auto;margin-right:auto;width:600px;display:none">
     <form id="Form1" runat="server">
     
   <fieldset id="field" class="corners">
   <legend>Share Map</legend>
         <input id="hiddenLat" type="hidden" runat="server" />
          <input id="hiddenLng" type="hidden" runat="server" />
       <html5:EmailInput ID="EmailInput1" class="corners" runat="server" PlaceHolderText="Please enter recipents email"  Width="200px"> </html5:EmailInput><br /><br />
       <html5:TextInput ID="TextInput1" class="corners" runat="server" PlaceHolderText ="Enter your name" Width="200px"></html5:TextInput> <br /><br />
        <textarea id="TextArea1" cols="50" rows="10" class="corners" runat="server" placeholder ="Additional information in your e-mail"></textarea><br />
        <asp:Button  ID="Btn_SendMail" runat="server" onclick="Btn_SendMail_Click"  Text="Send Email" style="display:none"/><br />
        <asp:Label ID="Label1" runat="server" Text="Label" ></asp:Label><br />
       <br /> 
       </fieldset>
    </form>
    </div>
 <select name="lang" id="lang" onchange=" document.getElementById('input').setAttribute('lang', this.options[this.selectedIndex].value)">
    
    <option value="en">English</option>
    <option value="en-GB" selected=selected>English (Great Britain)</option>
    <option value="en-US">English (USA)</option>
    </select>
</div>
<div id ="position">

</div>
<div id ="headingCell">

</div>
<div id="Error" class="ui-widget" style="width:400px;margin-left:auto;margin-right:auto;display:none">
	<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
		<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
		<strong id ="check">Alert:</strong></p>
	</div>
    </div>
    <div id="Warning" class="ui-widget" style="width:400px;margin-left:auto;margin-right:auto;display:none">
	<div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
		<p ><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
		<strong id ="warningText" >Warning:</strong></p>
	</div>
   
</div>
 <div id="Success" class="ui-widget" style="width:400px;margin-left:auto;margin-right:auto;display:none">
	<div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
		<p style="color:Green"><span style="float: left; margin-right: .3em"></span>
		<strong id ="successText">Success:</strong></p>
	</div>
   
</div>

<div id="tool" style="margin-left:auto;margin-right:auto">
	<br/>
	<textarea rows="15" cols="94" id="textBox"></textarea>
   
</div>

<a class="fancybox" href ="#inline1"title="Lorem ipsum dolor sit amet" onclick ="click()" style="display:none">Inline</a>

<div id="inline1"  style="width:400px;display:none">
		<h3>Etiam quis mi eu elit</h3>
		<p>
			Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis id et neque. Nulla sit amet sem sapien. Vestibulum imperdiet porta ante ac ornare. Nulla et lorem eu nibh adipiscing ultricies nec at lacus. Cras laoreet ultricies sem, at blandit mi eleifend aliquam. Nunc enim ipsum, vehicula non pretium varius, cursus ac tortor. Vivamus fringilla congue laoreet. Quisque ultrices sodales orci, quis rhoncus justo auctor in. Phasellus dui eros, bibendum eu feugiat ornare, faucibus eu mi. Nunc aliquet tempus sem, id aliquam diam varius ac. Maecenas nisl nunc, molestie vitae eleifend vel, iaculis sed magna. Aenean tempus lacus vitae orci posuere porttitor eget non felis. Donec lectus elit, aliquam nec eleifend sit amet, vestibulum sed nunc.
		</p>
	</div>


    </div>

  
</body>
    
   <!-- <script  type ="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script>
  <script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
   <script type="text/javascript" src="Javascript/jquery.fancybox.pack.js"></script>
    <script type="text/javascript" src="Javascript/jquery.fancybox.pack.js"></script>
 
   <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places,weather&sensor=false"></script>  
  
  
  
   
   <script src="Javascript/Directions.js" type="text/javascript"></script>
   <script src="Javascript/Methods.js" type="text/javascript"></script>
  
  

   
</html>
